<div class="albumadd">
	<form action="<?php echo url('album/edit');?>" method="post" id="editForm">
		<table>
			<tr>
				<td align="right" width="80">相册名称:</td>
				<td align="left">
					<input type="text" class="required" name="album[title]" value="<?php echo $album['title'];?>" />
					<span style="color:red; margin-left: 6px;">*</span>
				</td>
			</tr>
			<tr>
				<td align="right">相册类型:</td>
				<td align="left">
					<textarea name="album[description]"><?php echo $album['description'];?></textarea>	
				</td>
			</tr>
			<tr>
				<td align="right">排序:</td>
				<td align="left">
					<input type="text" name="album[sortID]" value="<?php echo $album['sortID']?>" />	
				</td>
			</tr>
			<tr><td colspan="2" align="right"><input type="submit" value="修改" id="catesub" /></td></tr>
		</table>
		<input type="hidden" name="id" value="<?php echo $album['id'];?>" />
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	submitForm("#editForm",{
		dataType:'json',
		success:function(data){
				if(data.s=='1'){
					location.href="<?php echo url('album/index');?>";
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
